package com.xdap.keymen.entity.dayang;

import com.definesys.mpaas.query.annotation.Column;
import com.definesys.mpaas.query.annotation.Style;
import com.definesys.mpaas.query.annotation.Table;
import com.xdap.api.moudle.base.entity.NoTenBasePojo;
import lombok.*;

import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Table(value = "dy_coupon_distribution_details")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Style()
public class DaYangCouponDistributionDetailsEntity extends NoTenBasePojo {

    private String id;

    @Column("document_id")
    private String documentId;

    @Column("tenant_id")
    private String tenantId;

    @Column("form_id")
    private String formId;

    @Column("distribution_details_number")
    private String distributionDetailsNumber;

    @Column("coupon_name")
    private String couponName;

    @Column("Has_it_expired")
    private String hasItExpired;

    @Column("reason")
    private String reason;

    @Column("valid_days")
    private long validDays;

    @Column("template_weimo_id")
    private String wmTemplateId;

    @Column("template_id")
    private String templateId;
    /**
     * 客户编码
     */
    @Column("name_id")
    private String nameId;

    /**
     * 客户名称
     */
    @Column("name")
    private String name;

    @Column("quantity")
    private long quantity;

    @Column("coupon_id")
    private String couponId;

    @Column("coupon_value")
    private String couponValue;

    @Column("expiration_date")
    private Date expirationDate;

    @Column("effective_date")
    private Date effectiveDate;

    @Column("distribution_time")
    private Date distributionTime;

    @Column("coupon_type")
    private String couponType;

    @Column("coupon_status")
    private String couponStatus;

    @Column("status")
    private String status;
    /**
     * 送券场景
     */

    @Column("coupon_distribute_scenario")
    private String couponDistributeScenario;

    /**
     * 优惠券分类
     */
    @Column("coupon_distribution_scenario")
    private String couponDistributionScenario;
    /**
     * 不适用门店
     */
    @Column("applicable_stores_no")
    private String applicableStoresNo;
    /**
     * 关联单号
     */
    @Column("out_id")
    private String outId;

    @Column("up_flag")
    private String upFlag;

    @Column("up_error_msg")
    private String upErrorMsg;

    @Column("menkan")
    private String menkan;
}
